.class Lcom/waiqin365/lightapp/deptmanager/c;
.super Landroid/os/Handler;


# instance fields
.field a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/c;->a:Ljava/lang/ref/WeakReference;

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/c;->a:Ljava/lang/ref/WeakReference;

    :cond_0
    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const v5, 0x7f08013b

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/c;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;

    if-nez v1, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->dismissProgressDialog()V

    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->b()Z

    move-result v2

    if-eqz v2, :cond_1

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    if-eqz v2, :cond_1

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->f:Lcom/waiqin365/lightapp/deptmanager/c/a;

    sput-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->b(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)V

    goto :goto_0

    :cond_1
    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/r;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->getString(I)Ljava/lang/String;

    :cond_2
    invoke-static {v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto :goto_0

    :sswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/b/a/u;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/b/a/u;->b()Z

    move-result v2

    if-eqz v2, :cond_4

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/u;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->c(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    if-nez v0, :cond_3

    new-instance v0, Lcom/waiqin365/compons/view/c;

    const-string/jumbo v2, ""

    const v3, 0x7f0806a2

    invoke-virtual {v1, v3}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    sget v4, Lcom/waiqin365/compons/view/c;->b:I

    new-instance v5, Lcom/waiqin365/lightapp/deptmanager/d;

    invoke-direct {v5, p0, v1}, Lcom/waiqin365/lightapp/deptmanager/d;-><init>(Lcom/waiqin365/lightapp/deptmanager/c;Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)V

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->a(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;Lcom/waiqin365/compons/view/c;)Lcom/waiqin365/compons/view/c;

    :cond_3
    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->c(Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    goto :goto_0

    :cond_4
    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/b/a/u;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_5

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/deptmanager/CompanyManagerActivity;->getString(I)Ljava/lang/String;

    :cond_5
    invoke-static {v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_0
        0x7 -> :sswitch_1
    .end sparse-switch
.end method
